package com.kujie.ai.utils;

import java.time.LocalDateTime;

/**
 * 时间工具
 *
 * @author check
 * @date 2025-07-24
 */
public class TimeUtil {
    // 辅助方法：获取当前季节
    public static String getCurrentSeason(LocalDateTime date) {
        int month = date.getMonthValue();
        return switch (month) {
            case 12, 1, 2 -> "冬季";
            case 3, 4, 5 -> "春季";
            case 6, 7, 8 -> "夏季";
            case 9, 10, 11 -> "秋季";
            default -> "未知季节";
        };
    }
}
